<template>
  <div class="loading">
    <img src="../assets/img/loadingimg.gif" alt />
    <p>{{loadingText}}</p>
  </div>
</template>
<script>
import {mapGetters} from "vuex";
export default {
  name: "Loading",
  data() {
    return {

    };
  },
  computed:{
    ...mapGetters(["loadingText"])
  }
};
</script>
<style lang="scss" scoped>
.loading {
  width: 2.6rem;
  height: 2.2rem;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  color: white;
  img {
    width: 0.3rem;
  }
}
</style>